// 导入
import request from '@/utils/request'

// 查询
export const menuList = () => {
  return request({
    url: '/sys-menu/list',
    method: 'GET'
  })
}
export const menuAll = () => {
  return request({
    url: '/sys-menu/tree',
    method: 'GET'
  })
}
export const menutree = () => {
  return request({
    url: '/sys-menu/menutree',
    method: 'GET'
  })
}



// 新增
export const menuAdd = (data) => {
  return request({
    url: '/sys-menu/add',
    method: 'POST',
    data: data
  })
}

// 修改
export const menuUpdate = (data) => {
  return request({
    url: '/sys-menu/update',
    method: 'POST',
    data: data
  })
}

// 删除
export const menuDel = (data) => {
  return request({
    url: '/sys-menu/delete',
    method: 'POST',
    data: data
  })
}